home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 661 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: k2consult@aol.com (K2 Consult)
  3. Newsgroups: comp.std.c
  4. Subject: Hungarian Notation (was Re: Prefixing functions with return type..
  5. Date: 27 Mar 1996 13:29:41 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4jc1el$dal@newsbf02.news.aol.com>
  9. References: <DoKtsD.5M7@polo.demon.co.uk>
  10. Reply-To: k2consult@aol.com (K2 Consult)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13. My 2.002 yen worth on Hungarian notation:
  14.  
  15. It violates an old programming dictum: "Debug the code, not the comments!"
  16. Although they APPEAR to be part of the code, the compiler does not enforce
  17. the prefixes. Therefore, nothing is to prevent me from doing the
  18. following:
  19. long    sShort;
  20. Sure, maybe it started life as a short, when suddenly (perhaps much
  21. later), I find I need a long. Normally I just change a few header files,
  22. perhaps, and that is that (I know, I know, it's not quite that simply in
  23. RL). My point is, looking at the variable name will lead one to expect a
  24. short, when one is receiving a long. This example may seem a bit
  25. contrived, but there are plenty that are not.
  26.  
  27.  
  28. Timothy Knox
  29. Parallel Staffing Group
  30. K2Consult@aol.com
  31. Cogito, ergo hack.
  32. DNRC Holder of Past Knowledge, and ...
  33. "Chief Torturer and Lord High Executioner
  34. To People Who Use Words Like Productize"
  35.